import request from '@/utils/request'
import qs from 'qs'
//查询职业病管理列表
export function listMessage(query) {
    return request({
      url: '/aqsc/illnessManage/list',
      method: 'get',
      params: query
    })
}
// 查询所属机构列表
export function getDeptList(){
    return request({
      url: '/system/user/deptTree',
      method: 'get',
    })
}
// 查询职业病类型列表
export function getIllnessType(query){
  return request({
    url: '/aqsc/illnessManage/listType',
    method: 'get',
    params: query
  })
}
// 查询信息详细
export function getMessage(id) {
  return request({   
    url: '/aqsc/illnessManage/info/' + id,
    method: 'get'
  })
}
// 新增或修改
export function addAIllnessManage(data) {
  return request({
    url: '/aqsc/illnessManage',
    method: 'post',
    data: data
  })
}
//删除角色
export function delMessage(ids){
  return request({
    url: 'aqsc/illnessManage/' + ids,
    method: 'delete'
  })
}
